package io.xiyou.account2.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.xiyou.account2.Account2Service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;

/**
 * 账户接口
 *
 * @author 西柚
 * @date 2021-09-29 21:49:18
 */
@Slf4j
@Validated
@RestController
@RequestMapping("/accountInfo")
@Api(value = "/accountInfo", tags = "账户接口")
public class AccountInfoController {

    @Autowired
    private Account2Service account2Service;

//    @ApiOperation("账户扣款")
//    @GetMapping("/subtractAccountBalance")
//    public void subtractAccountBalance(@RequestParam(name = "accountId") Long accountId,
//                                       @RequestParam(name = "money") BigDecimal money) {
//        accountInfoService.subtractAccountBalance(accountId, money);
//    }

}
